import http from './http'

export async function fetchHistory() {
  const res = await http.get('/api/history')
  return res.data || []
}

export async function fetchHistoryById(id) {
  const res = await http.get(`/api/history/${id}`)
  return res.data
}


